package com.ruoyi.system.service.service;


import cn.hutool.core.date.DateUtil;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.ruoyi.system.entity.Advice;
import com.ruoyi.system.entity.Goods;
import com.ruoyi.system.mapper.AdviceMapper;
import com.ruoyi.system.mapper.GoodsMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 商品表业务处理
 **/
@Service
public class AdviceService {

    @Resource
    private AdviceMapper adviceMapper;

    /**
     * 新增
     */
    public void add(Advice advice) {

        advice.setCreateTime(DateUtil.now());
        adviceMapper.insert(advice);
    }



}